#include "sort.h"


void test1()
{
	int arr[] = { 5, 3, 9, 6, 2, 4, 7, 1, 8 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	//HeapSort(arr, sz);
	//QuickSort1(arr, 0, sz-1);
	QuickSort2(arr, 0, sz-1);
	QuickSort3(arr, 0, sz-1);
	for (auto e : arr)
	{
		cout << e << " " ;
	}
	          
}

void test2()
{
	int num = 100;
	float score = 3.14;
	char name[10] = "Сǿ";
	char str[50] = { 0 };
	sprintf(str, "%d %f %s", num, score, name);
	//cout << str;
	int num1 = 0;
	float score1 = 0;
	char name1[10] = {0};
	sscanf(str, "%d %f %s", &num1, &score1, name1);
	cout << num1 << " " << score1 << " " << name1;
}


int main()
{
	test1();
	//test2();
	//Topk();
	return 0;
}